package com.citcc.business.mapper;

import com.citcc.business.bean.Monitor;
import com.citcc.business.bean.UserOrderEntity;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface MonitorCenterMapper {

    /**
     * 获取orgId下的所有子机构
     *
     * @param orgId
     * @return
     */
    public List<Map<String, String>> getOrgTree(String orgId);

    /**
     * 获取orgId下的所有充电站信息
     *
     * @param orgId
     * @return
     */
    public List<Map<String, String>> getStationList(@Param("orgId") String orgId);

    /**
     * 根据id获取详细信息
     */
    public Map<String,String> getGDInfoById(String id);

    public List<Monitor> queryByList(Monitor Monitor);

    /**
     * 根据站点ID查询空闲的枪数量
     */
    public int gunCount(@Param("stationId") String stationId,@Param("type") String type);
    /**
     * 根据站点ID查询总的枪数量
     */
    public int stakeCount(@Param("stationId")String stationId,@Param("type") String type);

}
